from turbogears import widgets
import cherrypy


class Amatomu(widgets.Widget):
    template = """
<script src="http://www.amatomu.com/embed.php?blog_id=${amatomu_blog_id}"></script>
    """
    params = ['amatomu_blog_id']
    params_doc = {'amatomu_blog_id': 'Amatomu.com blog id'}

    location = widgets.js_location.bodybottom
    retrieve_javascript = widgets.set_with_self

